package com.zcoj.controller.User;

import com.zcoj.core.model.ApiResponse;
import com.zcoj.service.LanguageService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 接口
 * @author 剩xia的盛夏
 * @date 2023/02/24 16:16
 */
@RestController
@RequestMapping("/language")
@Api(tags = "接口")
public class LanguageController  {

    @Autowired
    private LanguageService languageService;


    @GetMapping("/getAllLanguageType")
    public ApiResponse getAllLanguageType(){
        List<String> list = languageService.findList();
        return ApiResponse.success(list);
    }
}
